package db.adapter;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


class DbAdapterOracle extends DbAdapter {
	@Override
	public Connection getConnection() {
		Connection con = null;
		try {		
			  Class.forName("oracle.jdbc.driver.OracleDriver"); con =
			  DriverManager.getConnection( "jdbc:oracle:thin:@" +
			  config.getParams(DbConfig.HOST) + ":" +
			  config.getParams(DbConfig.PORT) + "/XE",
			  config.getParams(DbConfig.USER),
			  config.getParams(DbConfig.PASS));
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		return con;
	}
}
